home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 15
/
Aminet 15 - Nov 1996.iso
/
Aminet
/
dev
/
gcc
/
ixemsdk.lha
/
man
/
cat2
/
setgroups.0
< prev
next >
Wrap
Text File
|
1996-09-01
|
2KB
|
42 lines
SETGROUPS(2) UNIX Programmer's Manual SETGROUPS(2)
NNAAMMEE
sseettggrroouuppss - set group access list
SSYYNNOOPPSSIISS
##iinncclluuddee <<ssyyss//ppaarraamm..hh>>
##iinncclluuddee <<uunniissttdd..hh>>
_i_n_t
sseettggrroouuppss(_i_n_t _n_g_r_o_u_p_s, _c_o_n_s_t _g_i_d___t _*_g_i_d_s_e_t)
DDEESSCCRRIIPPTTIIOONN
SSeettggrroouuppss() sets the group access list of the current user process ac-
cording to the array _g_i_d_s_e_t. The parameter _n_g_r_o_u_p_s indicates the number
of entries in the array and must be no more than {NGROUPS_MAX}.
Only the super-user may set new groups.
RREETTUURRNN VVAALLUUEESS
A 0 value is returned on success, -1 on error, with an error code stored
in _e_r_r_n_o.
EERRRROORRSS
The sseettggrroouuppss() call will fail if:
[EINVAL] The value of _n_g_r_o_u_p_s is greater than {NGROUPS_MAX}.
[EPERM] The caller is not the super-user.
[EFAULT] The address specified for _g_i_d_s_e_t is outside the process ad-
dress space.
SSEEEE AALLSSOO
getgroups(2), initgroups(3)
HHIISSTTOORRYY
The sseettggrroouuppss() function call appeared in 4.2BSD.
4.2 Berkeley Distribution April 16, 1994 1